var selectedId;
var tableRow = $('table tr')

if (typeof jQuery !== 'undefined') {
    (function ($) {
        $('#spinner').ajaxStart(function () {
            $(this).fadeIn();
        }).ajaxStop(function () {
            $(this).fadeOut();
        });
    })(jQuery);
}

function deleteData(url) {
      window.location.href = url + '/' + selectedId

}

function changePerson(url){
    window.location.href = url +'/' +selectedId
}

function select(id) {
    $('table tr').removeClass('colored');
    $("#table" + id).addClass('colored');
    selectedId = id;
}
